﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EQual.MainModule.Documents.DocumentsDetailViews
{
    public class DocumentDetailedControlPresenter
    {
        IDocumentDetailedControl view;

        internal IDocumentDetailedControl View
        {
            get { return view; }
            set
            {
                view = value;
            }
        }

        public void DisplayDocument(DataAccesLayer.Document document)
        {
            this.view.ActiveItem = document;
        }

        public DocumentDetailedControlPresenter(IDocumentDetailedControl view)
        {
            this.view = view; 
        }

        public DocumentDetailedControlPresenter()
        {
            this.View = new DocumentsDetailedControl();
        }


    }
}
